package com.wechet.utils;

import lombok.Data;
import lombok.experimental.PackagePrivate;

/**
 * Created by sc on 2017/9/24.
 */
public class MathUtil {
    private static final Double money_range = 0.01;

    public static Boolean equals(Double d1, Double d2) {
        Double result = Math.abs(d1 - d2);
        if (result < money_range) {
            return true;
        }
        return false;
    }
}
